/*
 * @Description: 
 * @Version: 0.1
 * @Autor: 许振富 zfgj201511
 * @Date: 2021-11-30 16:52:51
 * @FilePath: \MT500-EM-A39E17-s\System\SEGGER\User_RTT\RTT_Log.c
 * @LastEditors: 许振富(jia)
 * @LastEditTime: 2021-11-30 16:56:37
 */
#include "RTT_Log.h"

#if (LOG_EN == 1)

unsigned char RTT_LOG_BUFFER[LOG_MAX_BUFFER];

void DeBug_Init(void)
{
	/* 配置通道0，上行配置*/
	SEGGER_RTT_ConfigUpBuffer(0, "RTTUP", NULL, 0, SEGGER_RTT_MODE_NO_BLOCK_SKIP);	
//	/* 配置通道0，下行配置*/	
//	SEGGER_RTT_ConfigDownBuffer(0, "RTTDOWN", NULL, 0, SEGGER_RTT_MODE_NO_BLOCK_SKIP);
	/* 做一个简单的回环功能 */
//	if (SEGGER_RTT_HasKey()) 
//	{
//		GetKey = SEGGER_RTT_GetKey();
//		SEGGER_RTT_SetTerminal(0);
//		SEGGER_RTT_printf(0, "SEGGER_RTT_GetKey = %c\r\n", GetKey);
//	}
}
#endif

